package com.battleship.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

import com.battleship.R;
import com.battleship.utils.ScreenUtils;

public class Splash extends Activity {
	@Override
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		ScreenUtils.setFullScreen(this);
		setContentView(R.layout.splash);
		Handler x = new Handler();
		x.postDelayed(new splashhandler(), 2000);
	}
	class splashhandler implements Runnable {
		public void run() {
			startActivity(new Intent(getApplication(), BattleShip.class));
			Splash.this.finish();
		}
	}
}
